<template>
    <el-button plain type="primary" @click="open">打开</el-button>

    <dialogCmp ref="dialogRef"></dialogCmp>
</template>

<script setup>
import { ref } from 'vue'
import dialogCmp from './dialogCmp.vue'

const dialogRef = ref(null)
const open = () => {
    dialogRef.value.open()
}
</script>

<style lang="scss" scoped>
</style>